package generyki1;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

/**
 * Autor: Daniel Michalski
 * Data: 12.07.13
 */

public class Test {
    public static void main(String[] args) {
        String[] txt = { "ala", "ma", "kota" };
        Integer[] num = {1, 2, 3};

        List<String> list1 = new ArrayList<String>();
        List<Integer> list2 = new ArrayList<Integer>();

        Collections.addAll(list1, txt);
        Collections.addAll(list2, num);

        for (String s : list1) {
            System.out.println(s.toUpperCase());
        }

        int sum = 0;
        for (Integer n : list2) {
            sum += n;
        }
        System.out.println("Suma: " + sum);
    }
}
